home *** CD-ROM | disk | FTP | other *** search
- Path: news1.cle.ab.com!usenet
- From: don.phillips@ab.com (Donald-Anthony C. Phillips)
- Newsgroups: comp.lang.c
- Subject: Re: gets(rec->num); I don't know what I am doing wrong...
- Date: Fri, 09 Feb 1996 16:14:33 GMT
- Organization: The Allen-Bradley Co., Inc
- Distribution: inet
- Message-ID: <4ffhbo$qm4@news1.cle.ab.com>
- References: <4fempt$mjg@aphex.direct.ca>
- NNTP-Posting-Host: abpc386.cle.ab.com
- X-Newsreader: Forte Free Agent 1.0.82
-
- Part of your problem may be that gets() is defined as gets(char *s).
- You are passing all sorts of values to gets(), i.e., gets(rec->id)
- where id is of type int. Note that enumerated types are integer
- constant values. So again you are using gets(rec->major) which is not
- defined as char *s
-
- Secondly, is FILE* fp the same as FILE *fp. It appears numerous
- pointers are defined as TYPE* var ( unless its just my monitor) with
- the asterick attached to the type( maybe someone else in the group can
- tell if this declaration is equivalent),
-
- I'm not real sure about your code, you may need to post the assign2.h
- header which you include for greater clarity.
-
- Donald-Anthony C. Phillips
- Programmer/Analyst
- Rockwell Automation
- ---------------------------------------
- Allen-Bradley
- don.phillips@ab.com
-
-